package com.itheima.fuxichengxu;

import java.util.Scanner;

public class TestReward {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(true){
            System.out.println("请输入学生成绩");

            int score = sc.nextInt();
            if(score >= 0 && score <= 100){
                if(score <= 100 && score >=95){
                    System.out.println("奖励自行车一辆");
                }else if(score <= 94 && score >= 90){
                    System.out.println("奖励游乐场门票两张");
                }else if(score <=89 && score >= 80){
                    System.out.println("奖励变形金刚一个");
                }else{
                    System.out.println("挨顿揍");
                }

                }else{
                System.out.println("您的输入有误");
            }
        }
    }
}
